package com.ligong.blog.common.exception;

import lombok.Data;

@Data
public class BlogException extends RuntimeException {
    private int code;
    private String errMsg;

    public BlogException(String message) {
        this.errMsg = message;
    }

    public BlogException(int code, String message) {
        this.code = code;
        this.errMsg = message;
    }
}
